package com.wcity.manage.common.context;

import java.text.SimpleDateFormat;

/**
 * 存放service中的常量
 * @author sxd
 * @modify jn
 */
public class ServiceConstants {

    public static final String ERROR_DB = "系统异常！";

    public static final String ERROR_SYSTEM = "系统异常！";

    public static final SimpleDateFormat simpleFormat = new SimpleDateFormat("yyyy-MM-dd");

    public static final SimpleDateFormat completeFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
    /**
     * 图片格式
     */
    public static final String PICSUFFIXS = ".jpg.jpeg.png.gif.JPG.JPEG.PNG.GIF";
    /**
     * 图片最大尺寸为2m
     */
    public static final int PIC_TOP_SIZE = 2 * 1024 * 1024;

    public enum UploadPic{
        ERROR_SIZE("100","图片尺寸应小于2m！"),ERROR_FORMAT("200","图片格式不正确！"),ERROR_EXCEPTION("300","系统异常,请稍后重试！");
        public String code;
        public String msg;
        private UploadPic(String code, String msg){
            this.code = code;
            this.msg = msg;
        }
    }

}
